<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>C6X Options (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="C6X Options (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="C6X Options (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Submodel-Options.html" rel="up" title="Submodel Options">
<link href="CRIS-Options.html" rel="next" title="CRIS Options">
<link href="Blackfin-Options.html" rel="prev" title="Blackfin Options">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en_US">
<div class="subsection-level-extent" id="C6X-Options">
<div class="nav-panel">
<p>
Next: <a href="CRIS-Options.html" accesskey="n" rel="next">CRIS Options</a>, Previous: <a href="Blackfin-Options.html" accesskey="p" rel="prev">Blackfin Options</a>, Up: <a href="Submodel-Options.html" accesskey="u" rel="up">Machine-Dependent Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="C6X-Options-1"><span>3.19.8 C6X Options<a class="copiable-link" href="#C6X-Options-1"> &para;</a></span></h4>
<a class="index-entry-id" id="index-C6X-Options"></a>

<dl class="table">
<dt><a id="index-march-3"></a><span><code class="code">-march=<var class="var">name</var></code><a class="copiable-link" href="#index-march-3"> &para;</a></span></dt>
<dd><p>This specifies the name of the target architecture.  GCC uses this
name to determine what kind of instructions it can emit when generating
assembly code.  Permissible names are: &lsquo;<samp class="samp">c62x</samp>&rsquo;,
&lsquo;<samp class="samp">c64x</samp>&rsquo;, &lsquo;<samp class="samp">c64x+</samp>&rsquo;, &lsquo;<samp class="samp">c67x</samp>&rsquo;, &lsquo;<samp class="samp">c67x+</samp>&rsquo;, &lsquo;<samp class="samp">c674x</samp>&rsquo;.
</p>
</dd>
<dt><a id="index-mbig_002dendian-3"></a><span><code class="code">-mbig-endian</code><a class="copiable-link" href="#index-mbig_002dendian-3"> &para;</a></span></dt>
<dd><p>Generate code for a big-endian target.
</p>
</dd>
<dt><a id="index-mlittle_002dendian-3"></a><span><code class="code">-mlittle-endian</code><a class="copiable-link" href="#index-mlittle_002dendian-3"> &para;</a></span></dt>
<dd><p>Generate code for a little-endian target.  This is the default.
</p>
</dd>
<dt><a id="index-msim-1"></a><span><code class="code">-msim</code><a class="copiable-link" href="#index-msim-1"> &para;</a></span></dt>
<dd><p>Choose startup files and linker script suitable for the simulator.
</p>
</dd>
<dt><a id="index-msdata_003ddefault"></a><span><code class="code">-msdata=default</code><a class="copiable-link" href="#index-msdata_003ddefault"> &para;</a></span></dt>
<dd><p>Put small global and static data in the <code class="code">.neardata</code> section,
which is pointed to by register <code class="code">B14</code>.  Put small uninitialized
global and static data in the <code class="code">.bss</code> section, which is adjacent
to the <code class="code">.neardata</code> section.  Put small read-only data into the
<code class="code">.rodata</code> section.  The corresponding sections used for large
pieces of data are <code class="code">.fardata</code>, <code class="code">.far</code> and <code class="code">.const</code>.
</p>
</dd>
<dt><a id="index-msdata_003dall"></a><span><code class="code">-msdata=all</code><a class="copiable-link" href="#index-msdata_003dall"> &para;</a></span></dt>
<dd><p>Put all data, not just small objects, into the sections reserved for
small data, and use addressing relative to the <code class="code">B14</code> register to
access them.
</p>
</dd>
<dt><a id="index-msdata_003dnone"></a><span><code class="code">-msdata=none</code><a class="copiable-link" href="#index-msdata_003dnone"> &para;</a></span></dt>
<dd><p>Make no use of the sections reserved for small data, and use absolute
addresses to access all data.  Put all initialized global and static
data in the <code class="code">.fardata</code> section, and all uninitialized data in the
<code class="code">.far</code> section.  Put all constant data into the <code class="code">.const</code>
section.
</p></dd>
</dl>

</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="CRIS-Options.html">CRIS Options</a>, Previous: <a href="Blackfin-Options.html">Blackfin Options</a>, Up: <a href="Submodel-Options.html">Machine-Dependent Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
